package zunyi05;

/**
 * 长方体类
 */
public class Figrue extends Rectangle {
    private double high;

    public Figrue(double high) {
        this.high = high;
    }

    public Figrue(double length, double wide, double high) {
        super(length, wide);
        this.high = high;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }
    @Override
    public void count(){
        System.out.println("长方体面积为="+super.getLength()*super.getWide()*high);
    }
}
